feat: ElevenLabs v3 support (eleven_v3 model + audio tags)#37
Merged
OwenMcGirr merged 3 commits intomainfrom Apr 11, 2026
Merged
feat: ElevenLabs v3 support (eleven_v3 model + audio tags)#37OwenMcGirr merged 3 commits intomainfrom
OwenMcGirr merged 3 commits intomainfrom
Conversation
- Add _ssmlToV3AudioTags() to translate SSML to v3 inline audio tags: emphasis strong/moderate → [excited], reduced → [whispers], break → [pause] - prepareText() now routes to tag translation for eleven_v3, strips for all other models - Expose seed, languageCode, previousText, nextText, applyTextNormalization in ElevenLabsTTSOptions - Include v3 params in buildRequestPayload() when set - Add 16 unit tests covering tag translation and new request params Closes #36
Owner
|
Ok. Check PR #31 and speechmarkdown/speechmarkdown-js#108 I had a rough plan to get smd-js 108 accepted then update 31 to use the expressive tags from that. Just double check this doesn't conflict with that. See also #24 (comment) I have a feeling I might not be solving everything in your pr though. Just double check. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_ssmlToV3AudioTags()translates SSML to ElevenLabs v3 inline audio tags:<emphasis level="strong">→[excited],<emphasis level="reduced">→[whispers],<break>→[pause], other tags stripped (content kept)prepareText()routes to tag translation whenmodelId === "eleven_v3", strips for all other modelsElevenLabsTTSOptions:seed,languageCode,previousText,nextText,applyTextNormalization— included in request payload when setTest plan
npx jest src/__tests__/elevenlabs-v3.test.ts— all 16 tests passnpm run build— clean buildmodelId: "eleven_v3"and SSML input — audio returns without errorseedparam produces deterministic output across two identical requestsCloses #36